<?php


namespace BigVideo\Other\Strategy;


use BigVideo\Other\Strategy\Impl\FlyNoWay;

class RubberDuck extends Duck
{
    public function __construct()
    {
        $this->setFlyingStrategy(new FlyNoWay());
    }

    public function quack()
    {
        echo "嘎~嘎！嘎！\n";
    }

    public function display()
    {
        echo "我是小黄鸭,全发黄，嘴巴很红！\n";
    }
}